<?php

namespace Xrfg\Api\Trading\Spot\Requests;

use Illuminate\Foundation\Http\FormRequest;

class OrderIndexRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'symbol' => 'nullable',
            'coin_name' => 'nullable',
            'market_name' => 'nullable',
            'side' => 'nullable',
            'status' => 'nullable',
            'order_type' => 'nullable',
            'start_time' => ['nullable', 'date'],
            'end_time' => ['nullable', 'date'],
            'per_page' => 'nullable',
        ];
    }
}
